<%--
  Created by IntelliJ IDEA.
  User: jiangxuchuan
  Date: 2022/1/4
  Time: 15:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Value Of Y</title>
</head>
<body>
    <%
        int x = -5;
        int y = 0;
        if (x < 0){
            y = -1;
        }else if (x > 0){
            y = 1;
        }else {
            y = 0;
        }
    %>
    <div style="text-align: center">
        <h1>x的值为：<%= x %></h1><br>
        <h1>y的值为：<%= y %></h1>
    </div>
</body>
</html>
